<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <link rel="stylesheet" href="list.css"/>
    </head>
    <body>
    <div id="con">
        <h1>添加员工</h1>
        <form action="empadd.php" method="post">
            <table border="1" width="90%"> 
                <tr>
                    <th>姓名</th>
                    <td> <input type="text" class="txt" name="e_name"/> </td>
                </tr>
                <tr>
                    <th>所属部门</th>
                    <td> <input type="text" class="txt"/> </td>
                </tr>
                <tr>
                    <th>头像</th>
                    <td><input type="radio" /><img src="images/1.jpg"/>
                        <input type="radio" /><img src="images/2.jpg"/>
                        <input type="radio" /><img src="images/3.jpg"/>
                        <input type="radio" /><img src="images/4.jpg"/>
                    </td>
                </tr>
                <tr>
                    <th>出生日期</th>
                    <td> <input type="datetime-local" /> </td>
                </tr>
                <tr>
                    <th>入职日期</th>
                    <td> <input type="datetime-local" /> </td>
                </tr>
                <tr>
                    <th></th>
                    <td>
                        <input type="reset" value="清除数据"/>
                        <input type="submit" value="确认添加"/>
                    </td>
                </tr>
            </table>            
        </form>
        <h1>员工信息表</h1>
    <table border="1" width="90%">
        <tr>
            <th>ID</th>
            <th>姓名</th>
            <th>所属部门</th>
            <th>头像</th>
            <th>出生日期</th>
            <th>入职日期</th>
            <th>相关操作</th>
        </tr>
        <?php
        foreach($emplist as $k)
        {
        ?>
        <tr>
            <td><?php echo $k['e_id']?></td>
            <td><?php echo $k['e_name']?></td>
            <td>所属部门</td>
            <td>头像</td>
            <td>出生日期</td>
            <td>入职日期</td>
            <td>相关操作</td> 
        </tr>
        <?php
        }
        ?>
    </table>
    </div>
    </body>
</html>
